projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c630285
)
Fix the definition of GtkWidget:can-target
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 1 Nov 2020 16:27:22 +0000
(11:27 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 2 Nov 2020 02:23:35 +0000
(21:23 -0500)
We are setting the value to TRUE initially, but
the property had a declared default of FALSE.
This is messing up the simplification of .ui files
with gtk4-builder-tool, since it thinks it can
omit can-target properties when it really can't.
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index f9bc34a969d73d474e50c4041dee47ebe7e12b64..31c0063022d6336f731db68cc52458527436f23c 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-1013,7
+1013,7
@@
gtk_widget_class_init (GtkWidgetClass *klass)
g_param_spec_boolean ("can-target",
P_("Can target"),
P_("Whether the widget can receive pointer events"),
-
FALS
E,
+
TRU
E,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
/**